package estacionamientoprincipal;

public class filaAutos extends Thread{
	private estacionamiento m;
	
	public filaAutos(String name, estacionamiento m){
		this.m = m;
		setName(name);
	}
	
	public void run(){
		while(true){
			m.formaAutoFila(getName());
			try{
				sleep((int)(Math.random()*10000));
			}catch (InterruptedException e){}
		}
	}
}